package com.ys.timer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;

import com.ys.service.amazonorder.TpAmazonSellerReportService;

@Controller
public class TimerAmazonShopOrder {
	@Autowired
	private TpAmazonSellerReportService tpAmazonSellerReportService;
	
	/*
	 * 强行刷取订单统计相关数据
	 */
	@Scheduled(cron = "0 0 10,18 * * * ")
	public void forceFinishAll() {
		
		try {
			tpAmazonSellerReportService.finishAll(2);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
